from PreludeFinaleFrame import PreludeFinaleFrame
from direct.interval.IntervalGlobal import *

class DropDownFrame(PreludeFinaleFrame):
    def Prelude(self):
        self.setPos(0,0,2) # move frame up
        Sequence(LerpPosInterval(self, 0.8, (0,0,0)),    # drop frame down
                 LerpPosInterval(self, 0.2, (0,0,0.1)),  # push frame up
                 LerpPosInterval(self, 0.3, (0,0,0))     # drop frame down
                 ).start()

    def FinaleAnimation(self):
        ret = LerpPosInterval(self, 0.8, (0,0,2))
        return ret
